<?php

require_once "ComponentBase.php";
Loader::using("Models::Entities::Puertos");

class PuertosComponent extends ComponentBase {

    public function getAll() {
        return $this->Puertos->GetAll();
    }
    
    public function getByPais($idPais, $skip, $range) {
        return $this->Puertos->GetByPais($idPais, $skip, $range);
    }
    
    public function getByPaisRaw($idPais, $skip, $range) {
        return $this->Puertos->GetByPaisRaw($idPais, $skip, $range);
    }

    public function getById($id) {
        return $this->Puertos->GetById($id);
    }

    public function getDeleted($id) {
        return $this->Puertos->GetDeleted();
    }

    public function update(Puertos $puerto) {
        return $this->Puertos->Update($puerto);
    }

    public function create(Puertos $puerto) {
        return $this->Puertos->Create($puerto);
    }

    public function remove($id) {
        $this->Puertos->Remove($id);
    }

    public function restore($id) {
        $this->Puertos->Restore($id);
    }

}

?>
